package com.dingyuhang.service.impl;


import com.dingyuhang.bean.City;
import com.dingyuhang.mapper.CityMapper;
import com.dingyuhang.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly=true,propagation=Propagation.NOT_SUPPORTED)
public class CityServiceImpl implements CityService {

	@Autowired
	private CityMapper cityMapper;

	/**
	 * 三级联动
	 */
	@Override
	public List<City> selectCitys(Integer pid) {
		return cityMapper.selectCitys(pid);
	}
	
}
